package com.gs.xbinfomytest.entity.dsl;

import com.gitee.hengboy.mybatis.enhance.dsl.expression.ColumnExpression;
import com.gitee.hengboy.mybatis.enhance.dsl.expression.TableExpression;
import com.gs.xbinfomytest.entity.SysJob;

/**
 * 定时任务调度表
 * @author ApiBoot Mybatis Enhance Codegen
 */
public class DSysJob extends TableExpression<SysJob> {

    public DSysJob(String root) {
        super(root);
    }

    public static DSysJob DSL() {
        return new DSysJob("sys_job");
    }

    /**
     * 任务ID
     */
    public ColumnExpression jobId = new ColumnExpression("job_id", this);
    /**
     * 任务名称
     */
    public ColumnExpression jobName = new ColumnExpression("job_name", this);
    /**
     * 任务组名
     */
    public ColumnExpression jobGroup = new ColumnExpression("job_group", this);
    /**
     * 调用目标字符串
     */
    public ColumnExpression invokeTarget = new ColumnExpression("invoke_target", this);
    /**
     * cron执行表达式
     */
    public ColumnExpression cronExpression = new ColumnExpression("cron_expression", this);
    /**
     * 计划执行错误策略（1立即执行 2执行一次 3放弃执行）
     */
    public ColumnExpression misfirePolicy = new ColumnExpression("misfire_policy", this);
    /**
     * 是否并发执行（0允许 1禁止）
     */
    public ColumnExpression concurrent = new ColumnExpression("concurrent", this);
    /**
     * 状态（0正常 1暂停）
     */
    public ColumnExpression status = new ColumnExpression("status", this);
    /**
     * 创建者
     */
    public ColumnExpression createBy = new ColumnExpression("create_by", this);
    /**
     * 创建时间
     */
    public ColumnExpression createTime = new ColumnExpression("create_time", this);
    /**
     * 更新者
     */
    public ColumnExpression updateBy = new ColumnExpression("update_by", this);
    /**
     * 更新时间
     */
    public ColumnExpression updateTime = new ColumnExpression("update_time", this);
    /**
     * 备注信息
     */
    public ColumnExpression remark = new ColumnExpression("remark", this);
    @Override
    public ColumnExpression[] getColumns() {
        return new ColumnExpression[]{jobId, jobName, jobGroup, invokeTarget, cronExpression, misfirePolicy, concurrent, status, createBy, createTime, updateBy, updateTime, remark};
    }

}

